<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>系统日志 - 管理后台</title>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</head>
<body>
    <div th:replace="fragments/header :: navbar"></div>
    <div class="container mt-5">
        <h2 class="mb-4"><i class="fas fa-clipboard-list"></i> 系统日志</h2>
        <table class="table table-bordered table-hover">
            <thead class="thead-light">
                <tr>
                    <th>时间</th>
                    <th>管理员</th>
                    <th>操作</th>
                    <th>目标用户</th>
                    <th>详情</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="log : ${logList}">
                    <td th:text="${#dates.format(log.createTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
                    <td th:text="${log.adminName}"></td>
                    <td th:text="${log.action}"></td>
                    <td th:text="${log.targetUsername}"></td>
                    <td th:text="${log.detail}"></td>
                </tr>
            </tbody>
        </table>
        <div class="alert alert-info" th:if="${logList.isEmpty()}">暂无操作日志。</div>
    </div>
</body>
</html> 